package com.example.chengww.myone.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by chengww on 2016/9/19.
 */
public class Data implements Parcelable{

    /**
     * hpcontent_id : 1464
     * hp_title : VOL.1437
     * author_id : -1
     * hp_img_url : http://image.wufazhuce.com/FmBxzN7EV5jjD3Ceyr4omJHb5Xd_
     * hp_img_original_url : http://image.wufazhuce.com/FmBxzN7EV5jjD3Ceyr4omJHb5Xd_
     * hp_author : 你所看到的未必真实&于雷 作品
     * ipad_url : http://image.wufazhuce.com/FjuBR7SA7Nn9ZbYtdzdB1V9Pt0rp
     * hp_content : 幸福是做你来到这个世界上注定要做的事，幸福是你所从事的事业和你这个人的本性是一致的。 by 乔纳森·弗兰岑
     * hp_makettime : 2016-09-12 23:00:00
     * last_update_date : 2016-09-07 14:07:35
     * web_url : http://m.wufazhuce.com/one/1464
     * wb_img_url :
     * praisenum : 20845
     * sharenum : 2303
     * commentnum : 0
     */

        private String hp_title;
        private String hp_img_url;
        private String hp_author;
        private String hp_content;
        private String hp_makettime;
        private String web_url;
        private int praisenum;

    @Override
    public String toString() {
        return "Data{" +
                "hp_title='" + hp_title + '\'' +
                ", hp_img_url='" + hp_img_url + '\'' +
                ", hp_author='" + hp_author + '\'' +
                ", hp_content='" + hp_content + '\'' +
                ", hp_makettime='" + hp_makettime + '\'' +
                ", web_url='" + web_url + '\'' +
                ", praisenum=" + praisenum +
                '}';
    }

    protected Data(Parcel in) {
        hp_title = in.readString();
        hp_img_url = in.readString();
        hp_author = in.readString();
        hp_content = in.readString();
        hp_makettime = in.readString();
        web_url = in.readString();
        praisenum = in.readInt();
    }

    public Data() {
    }

    public static final Creator<Data> CREATOR = new Creator<Data>() {
        @Override
        public Data createFromParcel(Parcel in) {
            return new Data(in);
        }

        @Override
        public Data[] newArray(int size) {
            return new Data[size];
        }
    };

    public String getHp_title() {
            return hp_title;
        }

        public void setHp_title(String hp_title) {
            this.hp_title = hp_title;
        }

        public String getHp_img_url() {
            return hp_img_url;
        }

        public void setHp_img_url(String hp_img_url) {
            this.hp_img_url = hp_img_url;
        }

        public String getHp_author() {
            return hp_author;
        }

        public void setHp_author(String hp_author) {
            this.hp_author = hp_author;
        }

        public String getHp_content() {
            return hp_content;
        }

        public void setHp_content(String hp_content) {
            this.hp_content = hp_content;
        }

        public String getHp_makettime() {
            return hp_makettime;
        }

        public void setHp_makettime(String hp_makettime) {
            this.hp_makettime = hp_makettime;
        }

        public String getWeb_url() {
            return web_url;
        }

        public void setWeb_url(String web_url) {
            this.web_url = web_url;
        }

        public int getPraisenum() {
            return praisenum;
        }

        public void setPraisenum(int praisenum) {
            this.praisenum = praisenum;
        }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(hp_title);
        dest.writeString(hp_img_url);
        dest.writeString(hp_author);
        dest.writeString(hp_content);
        dest.writeString(hp_makettime);
        dest.writeString(web_url);
        dest.writeInt(praisenum);
    }
}
